if( typeof console != 'undefined' ){ console.debug('map.js'); }

GW.menu.tools = 
        { text: "Map Tools",                                                    // GewWiki tools
            submenu: { id: 'idEditSubmenu',
                itemdata: [
                    { text: 'Filter', url: '/underconstruction/Filter_TBD', disabled: false },
                    { text: 'Log', onclick: { fn: GW.log.showHide, scope: GW.log }}
                ]
            }
        };
        
GW.pageOnLoad = function(){                                                     // onLoad
    GW.log.log( 'GW.pageOnLoad' );
    GW.displayFeaturePage.init();                                               // init feature page display facility
    GW.mapDiv.init();
    GW.wait.hide();
};
GW.pageOnUnload = function(){                                                   // onUnload
    GW.log.log( 'GW.pageOnUnload' );
    GUnload();
};
GW.mapDiv = {                                                                   // support idMap div
    date: new Date(),                                                           // date/time 
    timer: 0,                                                                   // movezoom timer
    query: '',                                                                  // our query object
    init: function(){
        GW.div.fullscreen( 'idMapDiv' );                                        // force size of divs
        GW.mapDiv.map = new GW.map( 'idMapDiv', false );
        GW.hash.initLLZT( GW.lat, GW.lon, GW.zoom, GW.maptype);                 // check hash and update LLZT
        GW.mapDiv.map.setLLZT( GW.lat, GW.lon, GW.zoom, GW.maptype );
        GW.mapDiv.map.showFeatures( GW.features, false );
    }
};

if( typeof console != 'undefined' ){ console.debug('map.js'); }
